package com.uniview.config;

import org.springframework.core.Ordered;

import static org.springframework.cloud.gateway.filter.NettyWriteResponseFilter.WRITE_RESPONSE_FILTER_ORDER;

/**
 * created by lux
 */
public class GatewayConstants {
    /**
     * @desc 最早执行 log1
     */
    public static int GATEWAY_CONTEXT= Ordered.HIGHEST_PRECEDENCE;
    /**
     * @desc 第二执行
     */
    public static int PRE_REQUEST= Ordered.HIGHEST_PRECEDENCE+1;
    /**
     * @desc 第三执行
     */
    public static int PRE_SIGNATURE= Ordered.HIGHEST_PRECEDENCE+2;
    /**
     * @desc 第四执行
     */
    public static int PRE_CHECK= Ordered.LOWEST_PRECEDENCE+3;
    /**
     * @desc 第五执行 log1
     */
    public static int ACCESS_LOG_ORDER= Ordered.HIGHEST_PRECEDENCE+4;

    /**
     * @desc 日志2-responseFliter
     */
    public static int LOGGING_FILTER = WRITE_RESPONSE_FILTER_ORDER - 1;
    /**
     * @desc 最后执行 log1
     */
    public static int GATEWAY_REMOVE= Ordered.LOWEST_PRECEDENCE;



}
